

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-gray);
    padding: 16px 20px;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.config-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.toggle-arrow {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-arrow:hover {
    background: rgba(0,0,0,0.05);
}

.toggle-arrow i {
    font-size: 14px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.model-select {
    border-color: #ccc;
    width: 100%;
    border-radius: 8px;
}


.config-section .sysPrompt .el-textarea__inner {
    height: 300px;
    resize: vertical;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/*连续对话*/
.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #ccc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    margin-top: 4px;
    margin-left: 4px;
}

.tooltip {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    left: 20px;
    top: 0;
    color: black;
    text-align: left;
}



.info-icon:hover .tooltip {
    display: block;
}

.text-muted {
    font-size: 30px;
    color: #6c757d;
}

.save-button {
    background-color: var(--primary-blue);
    border: none;
    padding: 10px 25px;
    font-weight: 500;
}

/* 高级设置卡片样式 */
.advanced-settings-card {
    margin-top: 10px;
    transition: all 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}

/* 卡片展开收起动画 */
.card-body {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 箭头图标动画 */
.el-icon-arrow-down, .el-icon-arrow-up {
    transition: transform 0.3s;
    margin-left: 5px;
}

/* 表单元素动画 */
.el-input, .el-select, .el-textarea {
    transition: all 0.3s ease;
}

.el-input:hover, .el-select:hover {
    transform: translateY(-1px);
}

/* 按钮悬停效果 */
.el-button {
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==================== 插件配置样式 ==================== */

/* 插件数量徽章 */
.plugin-count-badge {
    margin-left: 8px;
}

/* 区域标题 */
.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* 已添加插件区域 */
.added-plugins-section {
    margin-bottom: 24px;
}

.added-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.added-plugin-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.added-plugin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.plugin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.plugin-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.plugin-item-actions .plugin-menu-btn {
    color: #718096;
    padding: 4px;
}

.plugin-item-actions .plugin-menu-btn:hover {
    color: #2d3748;
    background: rgba(0,0,0,0.05);
}

.plugin-item-body {
    padding: 8px 16px 16px;
}

.plugin-item-name {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.plugin-item-desc {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.plugin-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plugin-status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plugin-status.active {
    color: #48bb78;
}

.plugin-status.inactive {
    color: #cbd5e0;
}

/* 添加插件区域 */
.add-plugin-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.add-plugin-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.add-plugin-button:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-1px);
}

.add-plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.add-plugin-text h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.add-plugin-text p {
    margin: 0;
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

/* 下拉菜单样式 */
.el-dropdown-menu__item.danger-item {
    color: #e53e3e;
}

.el-dropdown-menu__item.danger-item:hover {
    background-color: #fed7d7;
    color: #c53030;
}

/* 插件类型区分样式 */
.plugin-type-tag {
    margin-right: 8px !important;
}



/* MCP插件样式 */
.plugin-type-2 .plugin-item-icon,
.plugin-type-mcp .plugin-item-icon {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
}

.plugin-icon-type-2,
.plugin-icon-type-mcp {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
}

/* 内置插件样式 */
.plugin-type-3 .plugin-item-icon,
.plugin-type-builtin .plugin-item-icon {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
}

.plugin-icon-type-3,
.plugin-icon-type-builtin {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
}

/* 插件状态样式 */
.plugin-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-enabled {
    color: #38a169;
    background: #f0fff4;
}

.status-disabled {
    color: #e53e3e;
    background: #fed7d7;
}

/* ==================== 开场问题样式 ==================== */

.opening-questions-header {
    align-items: center;
    margin-bottom: 12px;
}

.opening-questions-inputs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.opening-questions-inputs .el-input {
    margin-bottom: 0;
}

.opening-questions-inputs .el-button--danger {
    background: #fed7d7;
    border-color: #e53e3e;
    color: #e53e3e;
}

.opening-questions-inputs .el-button--danger:hover {
    background: #e53e3e;
    color: white;
}

.opening-questions-inputs .el-button--primary.is-plain {
    background: white;
    border-color: #667eea;
    color: #667eea;
}

.opening-questions-inputs .el-button--primary.is-plain:hover {
    background: #667eea;
    color: white;
}

/* 隐藏空的开场问题容器 */
.opening-questions-inputs:empty {
    display: none;
}

.opening-questions-inputs .mb-3:empty {
    display: none;
}

/* 开场问题预览样式 */
.opening-questions-preview {
    margin-top: 12px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.opening-question-item {
    display: inline-block;
    background: #f0f8ff;
    border: 1px solid #4299e1;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 4px 8px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #2b6cb0;
}

.opening-question-item:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* 模型能力标识样式 */
.model-option-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.model-name {
    font-weight: 500;
    color: #2d3748;
}

.model-capability-icons {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
}

.capability-icon i {
    font-size: 10px;
}

/* 图片识别图标 - 蓝色 */
.image-recognition-icon {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.image-recognition-icon:hover {
    background-color: #bbdefb;
    color: #0d47a1;
}

/* 插件支持图标 - 绿色 */
.plugin-support-icon {
    background-color: #e8f5e8;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.plugin-support-icon:hover {
    background-color: #c8e6c9;
    color: #1b5e20;
}

/* 自定义 tooltip 样式 - 显示在上方 */
.capability-icon::before {
    content: attr(title);
    position: fixed;
    top: var(--tooltip-top, -1000px);
    left: var(--tooltip-left, -1000px);
    transform: translateX(-50%);
    background-color: #2c2c2c;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.capability-icon::after {
    content: '';
    position: fixed;
    top: calc(var(--tooltip-top, -1000px) + 26px);
    left: var(--tooltip-left, -1000px);
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #2c2c2c;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 999999;
}

.capability-icon.tooltip-visible::before,
.capability-icon.tooltip-visible::after {
    opacity: 1;
    visibility: visible;
}

/* Element UI 选择器下拉框样式覆盖 */
.el-select-dropdown__item .model-option-content {
    padding: 0;
}

.el-select-dropdown__item {
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    height: auto !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .added-plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .add-plugin-button {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .opening-questions-inputs {
        padding: 12px;
    }
    
    .opening-question-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .model-capability-icons {
        gap: 4px;
    }
    
    .capability-icon {
        width: 18px;
        height: 18px;
    }
    
    .capability-icon i {
        font-size: 11px;
    }
}

